using System.IO;

namespace BSDS.Core.Data.TemporaryFiles
{
    public class FilenameProvider
    {
        private readonly string tempFolder;

        public FilenameProvider(string tempFolder)
        {
            this.tempFolder = tempFolder;
        }

        public string New(string prefix)
        {
            return Path.Combine(tempFolder, TempFilename.New(prefix).Value);
        }
    }
}